home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_cyn_hint.cog < prev    next >
Text File  |  1999-11-15  |  4KB  |  150 lines

  1. # Jones 3D Cog Script
  2. #
  3. # CYN_Hint.cog
  4. #
  5. # Solves hints    
  6. #
  7. # [CMG]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14.     message        startup
  15.     message        entered
  16.     message        removed
  17.     message        user0
  18.  
  19.     thing        player            local
  20.     thing        sender            local
  21.  
  22.     # HINT OBJECTS / SURFACES / SECTORS / THINGS
  23.  
  24.     thing        hint1
  25.  
  26.     thing        hint2
  27.     surface        hintsurf0        # climb to the top of first ladder    (climb)
  28.  
  29.     thing        hint4
  30.     surface        hintsurf1        # surface block must rest on to have hint solved (pull block)
  31.  
  32.     thing        hint6
  33.     surface        hintsurf2        # crawl onto this surface to solve hint     (crawl)
  34.  
  35.     thing        hint8  
  36.     surface        hintsurf3        # jump onto this surface to solve hint (6m)
  37.  
  38.     thing        hint10
  39.     surface        h10_face        # whip this strut to solve hint    (whipclimb)
  40.  
  41.     thing        hint12
  42.     sector        h12_sector        # jump into this sector to solve hint (4X2)
  43.  
  44.     thing        hint14
  45.  
  46.     thing        hint16
  47.     sector        fall_sector        # enter sector at waterfall    top to solve hint
  48.  
  49.     thing        hint18
  50.     thing        potsherd        # take potsherd to solve hint
  51.  
  52.     thing        hint20
  53.     surface        hintsurf5        # climb onto this surf to solve hint
  54.  
  55.     thing        hint22
  56.     surface        hintsurf6        # touch this shimmy ledge to solve hint
  57.  
  58.     thing        hint24
  59.     surface        hintsurf7        # jump onto this face to solve hint    (6m)
  60.  
  61.     thing        hint26
  62.     surface        hintsurf8        # climb onto this face to solve hint (2nd climb)
  63.  
  64.     thing        hint28
  65.     surface        hintsurf9        # jump onto this face to solve hint    (7X-1M)
  66.  
  67.     thing        hint30
  68.     surface        hintsurf10        # jump onto this face to solve hint     (3M up)
  69.  
  70.     thing        hint32
  71.     surface        hintsurf11        # jump onto this face to solve hint     (4X2)
  72.  
  73.     thing        hint34
  74.     sector        exitsector        # last entered sector
  75.  
  76. end
  77.  
  78.  
  79. # ========================================================================================
  80. code
  81.  
  82. startup:
  83.  
  84.     player = GetLocalPlayerThing();
  85.     SetHintSolved(hint1);
  86.  
  87.     return;
  88.  
  89. # ========================================================================================
  90.  
  91. entered:
  92.  
  93.     sender = GetSenderRef();
  94.  
  95.     if (GetSourceRef() != player) return;
  96.  
  97.     if ((sender == hintsurf0) && (GetHintSolved(hint2) == 0))
  98.         SetHintSolved(hint2);
  99.     else if ((sender == hintsurf1) && (GetHintSolved(hint4) == 0))
  100.         SetHintSolved(hint4);
  101.     else if ((sender == hintsurf2) && (GetHintSolved(hint6) == 0))
  102.         SetHintSolved(hint6);
  103.     else if ((sender == hintsurf3) && (GetHintSolved(hint8) == 0))
  104.         SetHintSolved(hint8);
  105.     else if ((sender == h10_face) && (GetHintSolved(hint10) == 0))
  106.         SetHintSolved(hint10);
  107.     else if ((sender == h12_sector) && (GetHintSolved(hint12) == 0))
  108.         SetHintSolved(hint12);
  109.     else if ((sender == fall_sector) && (GetHintSolved(hint16) == 0))
  110.         SetHintSolved(hint16);
  111.     else if ((sender == hintsurf5) && (GetHintSolved(hint20) == 0))
  112.         SetHintSolved(hint20);
  113.     else if ((sender == hintsurf6) && (GetHintSolved(hint22) == 0))
  114.         SetHintSolved(hint22);
  115.     else if ((sender == hintsurf7) && (GetHintSolved(hint24) == 0))
  116.         SetHintSolved(hint24);
  117.     else if ((sender == hintsurf8) && (GetHintSolved(hint26) == 0))
  118.         SetHintSolved(hint26);
  119.     else if ((sender == hintsurf9) && (GetHintSolved(hint28) == 0))
  120.         SetHintSolved(hint28);
  121.     else if ((sender == hintsurf10) && (GetHintSolved(hint30) == 0))
  122.         SetHintSolved(hint30);
  123.     else if ((sender == hintsurf11) && (GetHintSolved(hint32) == 0))
  124.         SetHintSolved(hint32);
  125.     else if ((sender == exitsector) && (GetHintSolved(hint34) == 0))
  126.         SetHintSolved(hint34);
  127.  
  128.     return;        
  129.  
  130. # ========================================================================================
  131.  
  132. removed:
  133.  
  134.     if (GetSenderRef() == potsherd)
  135.     {
  136.         SetHintSolved(hint18);
  137.     }
  138.     return;
  139.  
  140. # ========================================================================================
  141.  
  142. user0:
  143.  
  144.     SetHintSolved(hint14);
  145.     return;
  146.  
  147. # ========================================================================================
  148. end
  149.  
  150.